package com.xike.micromemberserver.service.impl;

import com.xike.micromemberserver.dao.LoginDao;
import com.xike.micromemberserver.entity.MemberInfoEntity;
import com.xike.micromemberserver.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Auther: wuson  <br/>
 * Date: 2021/3/11:19:51  <br/>
 * Description:
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired(required = false)
    private LoginDao loginDao;
    @Override
    public MemberInfoEntity selectByAccount(String account) {
        MemberInfoEntity memberInfoEntity = loginDao.selectByAccount(account);
        return memberInfoEntity;
    }

    @Override
    public int register(MemberInfoEntity memberInfoEntity) {
        int state = loginDao.register(memberInfoEntity);
        return state;
    }
}
